home *** CD-ROM | disk | FTP | other *** search
- // Kustom Magic Software, Copyright (c) 1995, Ralph Krausse
- // File Created on 1/7/96 10:58:23 AM
-
- #include <stdlib.h>
- #include <direct.h>
- #include <string.h>
- #include <stdio.h>
-
- //This struct is what gets passed to the functions
- //declared below. All fields must be filled out
-
- typedef struct tagAppInfo
- {
- int bOverWriteSeal; // flag to over-write current seal
- char szMagicString[20]; // magic string, this string detects the seal if there is one
- char szAppName[260]; // Your magic string
- } APPINFO, *pAPPINFO, far *lpAPPINFO;
-
- //CExample struct..........
- typedef struct CExample
- {
- int bWinNT;
- int bWin95;
- int bWin31;
- long dtExpirationDate;
- char szCompany[60];
- char szName[40];
- char szMagicString[20];
- }CEXAMPLE;
-
-
- typedef struct tagVersion
- {
- int iMajor; // Major version
- int iMinor; // Minor version
- int iPatch; // patch version
- int bBeta; // is version a beta?
- } VERSION,*pVERSION,far *lpVERSION;
-
- /******************
- * Declarations... *
- ******************/
-
- void GetSealError (int wErr,char *szErrorString);
- int ValidateApplication (lpAPPINFO lpAppInfo, int wSealBufferLen, void *vpSealBuffer);
- int SealApplication(lpAPPINFO lpAppInfo, int wBufferLen);
- int InitializeBuffer(int wLen);
- void SaveInt(int wValue);
- void SaveLong(long lValue);
- void SaveString(char *szValue,int wLen);
- void DeInitializeBuffer(void);
- void GetAPIVersion(lpVERSION lpVersion);
-